import config from '@/config'
import RequestBase from '@/utils/request.js'

const baseRequest = new RequestBase(config.education)

// 考试统计列表
export const getTrainingResearchList = (data) => {
	return baseRequest.get('/bra/questionnaire/receive-list', data)
}

export const getTrainingResearchDetail = (id) => {
	return baseRequest.get(`/edu/train/survey/app/${id}`)
}

export const submitTrainingResearch = (data) => {
	return baseRequest.put('/edu/train/survey/app/submit', data)
}

// 获取调研问卷信息
export const getQuestionnaireDetail = (id) => {
	return baseRequest.get(`/bra/questionnaire/fillQuestions/${id}`)
}

// 填写调研问卷
export const fillQuestionnaire = (data) => {
	return baseRequest.post('/bra/questionnaire/fill', data)
}
